import request from '@/utils/request'

// 查询金融顾问列表
export function listConsultants(query) {
  return request({
    url: '/consultants/consultants/list',
    method: 'get',
    params: query
  })
}
//获取地区
export function getArea(query) {
  return request({
    url: '/areas/getArea',
    method: 'get',
  })
}
// 查询金融顾问详细
export function getConsultants(id) {
  return request({
    url: '/consultants/consultants/' + id,
    method: 'get'
  })
}

// 新增金融顾问
export function addConsultants(data) {
  return request({
    url: '/consultants/consultants',
    method: 'post',
    data: data
  })
}

// 修改金融顾问
export function updateConsultants(data) {
  return request({
    url: '/consultants/consultants',
    method: 'put',
    data: data
  })
}

// 删除金融顾问
export function delConsultants(id) {
  return request({
    url: '/consultants/consultants/' + id,
    method: 'delete'
  })
}
